close[x]


PHP

PHP-Home PHP-Environment Setup PHP-Syntax PHP-Run PHP in XAMPP PHP-Variable PHP-Comment PHP-Datatype PHP-String PHP-Operators PHP-Decision PHP-loop PHP-Get/Post PHP-Do While loop PHP-While loop PHP-For loop PHP-Foreach loop PHP-Array PHP-Multidimensional Arrays PHP-Associative Arrays PHP-Indexed Arrays PHP-Function PHP-Cookies. PHP-Session PHP-File upload PHP-Email PHP-Data & Time PHP-Include & Require PHP-Error PHP-File I/O PHP-Read File PHP-Write File PHP-Append & Delete File PHP-Filter PHP-Form Validation PHP-MySQl PHP-XML PHP-AJAX



learncodehere.com




PHP Tutorial

The term PHP is an acronym for PHP: Hypertext Preprocessor.

PHP is an open-source, interpreted, and object-oriented scripting language

PHP is a server-side scripting language designed specifically for web development.

PHP codes are executed on server

PHP files can contain text, HTML, CSS, JavaScript, and PHP code

PHP files have extension ".php"

PHP is an object-oriented language.

PHP can be embedded into HTML.


What PHP does

  • PHP can generate dynamic page content
  • PHP can send and receive cookies
  • PHP can collect form data
  • PHP can add, delete, modify data in your database
  • PHP can create, open, read, write, delete, and close files on the server
  • PHP can restrict users to access some pages of your website.
  • PHP Can run on various platforms (Windows, Linux, Unix, Mac OS X, etc.)



  • PHP Features

  • PHP script is executed much faster than those scripts which are written in other languages such as JSP and ASP.
  • PHP source code and software are freely available
  • PHP has easily understandable syntax
  • PHP code can be easily embedded within HTML tags and script
  • PHP is available for WINDOWS, MAC, LINUX & UNIX operating system
  • PHP supports all the leading databases such as MySQL, SQLite, ODBC, etc.
  • PHP can compatible with almost all servers used today (Apache, IIS, etc.)

  • What You Should Already Know

  • HTML : HTML is used to design static webpage.
  • CSS : CSS helps to make the webpage content more effective and attractive.
  • JavaScript : JavaScript is used to design an interactive website.

  • Example : Simple PHP

    
     <!DOCTYPE html>
     <html>
     <body>
                        
     <?php
     echo "My first PHP script!";
     ?> 
                        
     </body>
     </html>